package day1_12.FirstPhase;

public class Test1 {
    public static void main(String[] args) {
//        方法的重载,函数名相同,判断是不是方法重载的依据是函数的参数列表
//        与函数的返回类型无关
        sum(1,2);
        sum(20.5,30);
        sum('n', 'o');
    }

    public static void sum(int a, int b) {
        int c =a+b;
        System.out.println("结果是:"+ c);
    }

    public static void sum(double a, double b) {
        System.out.println(a + b);
    }
    public static void sum(char a, char b) {
        System.out.println("" + a + b);
    }
}
